import {
	uploadRequest,
	getRequest,
	postRequest
} from '@/lib/request';
export const fileApi = {
	upload: (file, folder) => {
		return uploadRequest(file, folder);
	},
	unionsSubmit: (param) => {
		return postRequest('/unions/submit', param);
	},
	// 抢单大厅列表
	getCarryList: (data) => {
		return getRequest(
			`/carry_list?game_type=${data.game_type}&game_login_type=${data.game_login_type}&type=${data.type}&page=${data.page}&game_id=${data.game_id}`
		)
	},
	// 抢单大厅下单
	carryOrder: (param) => {
		return postRequest('/carry_order', param);
	},
	// 技能申请
	handSubmit: (param) => {
		return postRequest('/hand/submit', param);
	},
	// 打手技能列表
	getHandSkill: (data) => {
		return getRequest(`/hand/skill?page=${data.page}`)
	},
	// 技能申请
	handSkillStatus: (param) => {
		return postRequest('/hand/skill_status', param);
	},
	// 提交技能展示信息
	handInfo: (param) => {
		return postRequest('/hand/info', param);
	},
	// 技能详情
	getHandSkillInfo: (data) => {
		return getRequest(`/hand/skill/info?id=${data.id}`)
	},
	// 首页设置列表
	getGameList: (data) => {
		return getRequest(`/game/list`)
	},
	// 关闭
	gameClose: (param) => {
		return postRequest('/game/close', param);
	},
	// 打开
	gameOpen: (param) => {
		return postRequest('/game/open', param);
	},
	//默认
	gameDefault: () => {
		return postRequest('/game/default');
	},
	//工会入住
	unionsSubmit: (params) => {
		return postRequest('/unions/submit',params);
	},
	// 获取工会
	getUnions: (data) => {
		return getRequest(`/unions/get`)
	},
	// 实名信息
	realName: (data) => {
		return postRequest(`/real_name`,data)
	},
};